package com.wuzuqing.android.eightdiagrams.dao;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.io.Serializable;

@Entity(tableName = "bazhi_history")
public class BaZhiHistory  implements Serializable {

    @PrimaryKey(autoGenerate = true)
    @NonNull
    public int id;

    @ColumnInfo(name = "create_time", defaultValue = "")
    public long createTime;

    @ColumnInfo(name = "save_time", defaultValue = "")
    public long saveTime;

    @ColumnInfo(name = "nick_name")
    public String nickName;

    @ColumnInfo(name = "city")
    public String city;

    @ColumnInfo(name = "use_sum_time")
    public int useSumTime;


    @ColumnInfo(name = "sex_type")
    public int sexType;


    public BaZhiHistory(long createTime, long saveTime, String nickName, String city, int useSumTime, int sexType) {
        this.createTime = createTime;
        this.saveTime = saveTime;
        this.nickName = nickName;
        this.city = city;
        this.useSumTime = useSumTime;
        this.sexType = sexType;
    }

    public int getUseSumTime() {
        return useSumTime;
    }

    public void setUseSumTime(int useSumTime) {
        this.useSumTime = useSumTime;
    }

    public int getSexType() {
        return sexType;
    }

    public void setSexType(int sexType) {
        this.sexType = sexType;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getSaveTime() {
        return saveTime;
    }

    public void setSaveTime(long saveTime) {
        this.saveTime = saveTime;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
}
